package com.vueblog.dao;

import com.vueblog.po.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentDao {
    //根据博客id和父评论id查找评论
    List<Comment> listCommentByBlogIdAndParentCommentId(int blogId, int parentId);

    int deleteComment(int id);

    int saveComment(Comment comment);

    Comment findCommentById(int id);
}
